# $Header: /pub/cvsroot/mydns/src/mydns/Makefile.am,v 1.19 2002/08/21 03:55:06 bboy Exp $

sbin_PROGRAMS	=	mydns

localedir		=	$(datadir)/locale

INCLUDES			=	-I../lib -I../../lib -I../../intl $(MYSQL_INCLUDE)
DEFS				=	-DLOCALEDIR=\"$(localedir)\"
AM_LDFLAGS		=	-static
LDADD				=	../../lib/libmydnsutil.a ../lib/libmydns.a @LIBINTL@ @LIBMYSQLCLIENT@ @LIBZ@

noinst_HEADERS	=	cache.h named.h
mydns_SOURCES	=	axfr.c cache.c conf.c data.c db.c encode.c \
						error.c listen.c main.c queue.c \
						reply.c resolve.c rr.c sort.c task.c \
						tcp.c udp.c


clean:
	rm -f malloc_trace gmon.out bb.out

ctags:
	ctags *.[ch] ../lib/*.[ch] ../../lib/*.[ch]

watch:
	watch -n 5 'kill -USR1 `cat /var/run/mydns.pid`'

## vi:set ts=3:
